/**
 * Created by zhuyun on 16/4/12.
 */
app.controller('textController', ['$scope', '$http', 'text', function($scope, $http, text){
    $scope.message= "this is the message from the server";
    $scope.text= text.getData;

    $http.get("server/data.json")
        .success(function(response){
            $scope.data=response.records;
        })
}])

